package com.flydog.taskManager.dto;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 工作完成状态的枚举
 *
 * @author caoweidong
 * @version 0.0.0
 * @create 2021/6/23 15:57
 */
public enum ProcessStatus {
    /**
     * 未完成
     */
    UNDONE(0, "undone"),
    /**
     * 已完成
     */
    DONE(1, "done"),
    /**
     * 进行中
     */
    PROCESSING(2, "processing");

    private int index;
    private String name;

    ProcessStatus(int index, String name) {
        this.index = index;
        this.name = name;
    }

    @JsonValue
    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
